

const hospitalMenuRoutes = {
  path: "/hospital",
  name: "Hospital",
  redirect: "/hospital/registration/", //医院信息->默认跳预约挂号
  component: () => import("@/pages/hospital/index.vue"),
  children: [
    {
      path: "/hospital/registration",
      name: "Registration",
      component: () => import("@/pages/hospital/registration/index.vue"), //预约挂号
      meta: {
        name: "预约挂号",
        icon: "Calendar",
      },
    },
    {
      path: "/hospital/registration/registration_step_1",
      name: "Registration_step_1",
      hidden: true, //是否隐藏
      component: () =>
        import("@/pages/hospital/registration/registration_step_1/index.vue"),
      meta: {
        name: "",
      },
    },
    {
      path: "/hospital/registration/registration_step_2",
      name: "Registration_step_2",
      hidden: true, //是否隐藏
      component: () =>
        import("@/pages/hospital/registration/registration_step_2/index.vue"),
      meta: {
        name: "",
      },
    },
    {
      path: "/hospital/detail",
      name: "Detail",
      component: () => import("@/pages/hospital/detail/index.vue"), //医院详情
      meta: {
        name: "医院详情",
        icon: "Document",
      },
    },
    {
      path: "/hospital/notice",
      name: "Notice",
      component: () => import("@/pages/hospital/notice/index.vue"), //预约须知
      meta: {
        name: "预约须知",
        icon: "Bell",
      },
    },
    {
      path: "/hospital/suspend",
      name: "Suspend",
      component: () => import("@/pages/hospital/suspend/index.vue"), //停诊信息
      meta: {
        name: "停诊信息",
        icon: "Warning",
      },
    },
    {
      path: "/hospital/query",
      name: "Query",
      component: () => import("@/pages/hospital/query/index.vue"), //查询/取消
      meta: {
        name: "查询/取消",
        icon: "Search",
      },
    },
  ],
};
const userMenuRoutes = {
  path: "/user",
  name: "User",
  redirect: "/user/certification",
  component: () => import("@/pages/user/index.vue"), //用户信息->默认跳 实名认证
  children: [
    {
      path: "/user/certification",
      name: "Certification",
      component: () => import("@/pages/user/certification/index.vue"), //实名认证
      meta: {
        name: "实名认证",
        icon: "Postcard",
      },
    },
    {
      path: "/user/order",
      name: "Order",
      component: () => import("@/pages/user/order/index.vue"), //挂号订单
      meta: {
        name: "挂号订单",
        icon: "Memo",
      },
    },
    {
      path: "/user/patient",
      name: "Patient",
      component: () => import("@/pages/user/patient/index.vue"), //就诊人管理
      meta: {
        name: "就诊人管理",
        icon: "User",
      },
    },
    {
      path: "/user/profile",
      name: "Profile",
      component: () => import("@/pages/user/profile/index.vue"), //账号信息
      meta: {
        name: "账号信息",
        icon: "Document",
      },
    },
    {
      path: "/user/feedback",
      name: "Feedback",
      component: () => import("@/pages/user/feedback/index.vue"), //意见反馈
      meta: {
        name: "意见反馈",
        icon: "ChatLineRound",
      },
    },
  ],
};
const routes = [
  {
    path: "/",
    redirect: "/home",
  },
  {
    path: "/home",
    name: "Home",
    component: () => import("@/pages/home/index.vue"), //首页
  },
  // 医院相关
  hospitalMenuRoutes,
  // 用户信息
  userMenuRoutes,
  {
    path: "/wx",
    name: "Wx",
    component: () => import("@/pages/wx/index.vue"),
  },
];

export { routes, hospitalMenuRoutes, userMenuRoutes };
